# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=nemo-qml-plugin-dbus
pkgver=2.1.21
pkgrel=1
pkgdesc="Nemo QML dbus plugin"
url="https://git.sailfishos.org/mer-core/nemo-qml-plugin-dbus"
arch="all !armhf" # armhf blocked by qt5-qtdeclarative-dev
license="BSD-3-Clause AND LGPL-2.1-only"
depends_dev="qt5-qtbase-dev qt5-qtdeclarative-dev"
makedepends="$depends_dev"
subpackages="$pkgname-dev"
source="https://git.sailfishos.org/mer-core/nemo-qml-plugin-dbus/-/archive/$pkgver/nemo-qml-plugin-dbus-$pkgver.tar.gz"
options="!check" # No tests

build() {
	qmake-qt5
	make
}

package() {
	INSTALL_ROOT="$pkgdir" make install

	# Remove installed tests
	rm -r "$pkgdir"/opt
}

sha512sums="1e6cd57d2008e708d0e63b20f8a357e0e21643bd9c6e3e7fe8acd464b225e736daa3ebb45e99b1593347059eb9bbcc5e38d4da71d12f367c968c905f227d0d68  nemo-qml-plugin-dbus-2.1.21.tar.gz"
